from rest_framework.filters import BaseFilterBackend
from django_filters import rest_framework as filters
from .models import Job


class CrawlerByKeyboardFilter(filters.FilterSet):
	job_name = filters.CharFilter(lookup_expr='icontains')
	company_name = filters.CharFilter(lookup_expr='icontains')
	job_place = filters.CharFilter(lookup_expr='icontains')
	job_experience = filters.CharFilter(lookup_expr='icontains')
	job_education = filters.CharFilter(lookup_expr='icontains')

	class Meta:
		model = Job
		fields = ['job_name','company_name', 'job_place', 'job_experience' , 'job_education']